#pragma 
#include<sqlite3.h>
#include<vector>
#include<string>
#pragma comment(lib,"sqlite3.lib")
extern const char* dbName;
extern const char* tableName;
// 定义与数据库表对应的结构体
struct LocationStruct {
    int id;
    std::string name;
    std::string type;
    int area_type;
    std::string intro;
    double heat;
    double rating;
    double x;
    double y;
};
#ifndef MAINHEADER
extern std::vector<LocationStruct>LocationTable;//Location表的所有内容
extern std::vector<LocationStruct>LocationTable_Spot;//景区条目
extern std::vector<LocationStruct>LocationTable_Campus;//校园条目
#endif



extern std::vector<LocationStruct> readLocations(const std::string& dbPath);